<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="betalife.be">
	<link rel="shortcut icon" href="<?=base_url()?>../resources/common/imgs/favicon/favicon_32x32.ico" />
	<title><?=$title?></title>
	
	 <!-- Bootstrap Core CSS -->
    <link href="<?=base_url()?>../resources/admin/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- MetisMenu CSS -->
    <link href="<?=base_url()?>../resources/admin/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="<?=base_url()?>../resources/admin/dist/css/sb-admin-2.css" rel="stylesheet">
        <!-- DataTables Responsive CSS -->
    <link href="<?=base_url()?>../resources/admin/bower_components/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet">
	<!-- Custom Fonts -->
	<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
	<!-- IE Alert -->
	<link href="<?=base_url()?>../resources/tools/iealert/iealert/style.css" rel="stylesheet" type="text/css" />
	<!-- Theme style reset-->
    <link href="<?=base_url()?>../resources/admin/css/reset.css" rel="stylesheet" type="text/css" />
	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <![endif]-->
    <!--[if (gte IE 9) | (!IE)]><!-->

    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <!--<![endif]-->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

	

	<script src="<?=base_url()?>../resources/tools/modernizr.custom.js"></script>
	<script src="<?=base_url()?>../resources/tools/iealert/iealert.js" type="text/javascript"></script>
	<script src="<?=base_url()?>../resources/tools/upload/js/jquery.blueimp-gallery.min.js"></script>
	<script src="<?=base_url()?>../resources/admin/js/tools.js"type="text/javascript"></script>
	
	<script type="text/javascript">
	$(document).ready(function(){
		$("body").iealert({
		 	support: "ie7",
			title:"Kijk Uit! Uw Internet Explorer is verouderd!",
			text:"Om de best mogelijke ervaring te krijgen met behulp van onze website raden wij u aan te upgraden naar een moderne webbrowser. Naar een nieuwere browser te downloaden, klikt u op de knop Upgrade.",
			upgradeLink: "http://browsehappy.com/?locale=nl",
			upgradeTitle: "Upgrade",
			closeBtn: false			
		});
	});
	</script>
</head>
<body>

  <div id="wrapper">
  
    <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">YuHua Shop - 管理页面</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">

                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i> <?=$this->aauth->get_user()->name?> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="<?=site_url()?>account"><i class="fa fa-user fa-fw"></i> 个人信息</a>
                        </li>
                    
                        <li class="divider"></li>
                        <li><!-- Button trigger modal -->
							<a href="#" class="btn  btn-md" data-toggle="modal" data-target="#logout">
  									<i class="fa fa-sign-out fa-fw"></i> 退出登陆
							</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">

                        <li>
                            <a href="<?=site_url()?>"><i class="fa fa-dashboard fa-fw"></i> 后台首页</a>
                        </li>
                        <li <?php if($this->uri->segment(1) == 'categories'){?>class="active"<?php }?>>
                            <a href="#" ><i class="fa fa-sitemap fa-fw"></i> 产品分类<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="<?=site_url()?>categories" <?php if($this->uri->segment(1) == 'categories' && $this->uri->segment(2) == 'viewCategory'){?>class="active"<?php }?>><i class="fa fa-eye"></i> 查看分类</a>
                                </li>
                                <li>
                                    <a href="<?=site_url()?>categories/addCategory" <?php if($this->uri->segment(1) == 'categories' && $this->uri->segment(2) == 'addCategory'){?>class="active"<?php }?>><i class="fa fa-plus"></i> 添加分类</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="<?=site_url()?>products" <?php if($this->uri->segment(1) == 'products'){?>class="active"<?php }?>><i class="fa fa-list-ol"></i> 产品管理</a>
                         
                        </li>
                          <li <?php if($this->uri->segment(1)=='users'){?>class="active"<?php }?>>
                            <a href="<?=site_url()?>users" <?php if($this->uri->segment(1) == 'users'){?>class="active"<?php }?>><i class="fa fa-user"></i> 用户管理</a>
                          </li>
                          <li>
                          	<a href="<?=site_url()?>server" <?php if($this->uri->segment(1) == 'server'){?>class="active"<?php }?>><i class="fa fa-server"></i> 服务器信息</a>
                          </li>



                       
                    
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>
       